<%@ page import="com.tyut.bean.Student" %><%--
  Created by IntelliJ IDEA.
  User: fantj
  Date: 19-1-7
  Time: 下午10:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Student student = (Student) request.getAttribute("student");
%>
<form action="/student" method="post">
    <input type="hidden" name="method" value="update">
    <label>学号</label>
    <input type="text" name="id" value="<%=student.getId()%>"> <br>
    <label>姓名</label>
    <input type="text" name="name" value="<%=student.getName()%>"> <br>
    <label>专业</label>
    <input type="text" name="department" value="<%=student.getDepartment()%>"> <br>
    <label>年级</label>
    <input type="text" name="grade" value="<%=student.getGrade()%>"> <br>
    <label>班级</label>
    <input type="text" name="clazz" value="<%=student.getClazz()%>"> <br>
    <label>性别</label>
    <input type="text" name="sex" value="<%=student.getSex()%>"> <br>
    <label>联系方式</label>
    <input type="text" name="phone" value="<%=student.getPhone()%>"> <br>
    <input type="submit" value="添加"> <br>
    <input type="reset" name="重置"> <br>
</form>
</body>
</html>
